$().ready(function(){
  // Make search form action
  $("#searchform").submit(function(){
    var form = $(this); 
    document.location.href = form.attr("action") + "/" + form.find("input[name=query]").val();  
    return false;
  });
  
});